package com.example.course_mangger_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @description: 课程
 * @author: hyj
 * @date: 2023/11/25 15:59
 */
@Data
public class Course {

    /**
     * 课程编号
     */
    @TableId(value = "course_code",type= IdType.AUTO)
    private Long courseCode;

    /**
     * 课程名字
     */
    @TableField(value = "name", condition = SqlCondition.LIKE)
    private String name;

    /**
     * 学分
     */
    private Double credit;

    /**
     * 任课老师
     */
    private String teacherName;

    /**
     * 学时数
     */
    private Integer creditHour;

}
